package com.sgj.springcloud.alibaba.service;

import com.sgj.springcloud.alibaba.domain.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 沈国纪
 * @date 2021/6/6 10:24
 */
@FeignClient("seata-storage-service")
public interface StorageService {

	@PostMapping("/storage/decrease")
	CommonResult decrease(@RequestParam("productId") Long productId, @RequestParam("count") Integer count);
}